<template>
  <div class="headerTop">
    <img src="@/assets/goBack.png" @click="goBack" alt="" /><slot></slot>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    goBack() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang="scss" scoped>
.headerTop {
  width: 100%;
  height: 43px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  font-size: 18px;
  font-weight: 500;
  color: #000000;
  img {
    width: 7px;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
  }
}
</style>
